package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.YiJiaoJLDao;
import com.cpecc.model.system.User;
import com.cpecc.model.wuzi.YiJiao;
import com.cpecc.model.wuzi.YiJiaoJL;

@Service
@Transactional
public class YiJiaoJLManager {

	@Autowired
	private YiJiaoJLDao yiJiaoJLDao;
	
	public void save(YiJiaoJL yiJiaoJL){
		yiJiaoJLDao.save(yiJiaoJL);
	}
	
	public List<YiJiaoJL> getAllJL(String yiJiaoId){
		return yiJiaoJLDao.getAllJL(yiJiaoId);
	}
	
	public List<YiJiao> getMyYJSPJL(User user){
		return yiJiaoJLDao.getMyYJSPJL(user);
	}
	
	public List<YiJiao> getMyTHSPJL(User user){
		return yiJiaoJLDao.getMyTHSPJL(user);
	}
	
	public YiJiaoJL lastGZGLY(YiJiao yiJiao){
		return yiJiaoJLDao.lastGZGLY(yiJiao);
	}
}
